﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Liger.Common
{
    public class CacheInfo
    { 
        /// <summary>
        /// 过期时间 单位：秒
        /// </summary>
        public int? TimeOut { get; set; }
         
        /// <summary>
        /// 文件路径
        /// </summary>
        public string FilePath { get; set; }


        /// <summary>
        /// 判断该cache是否为空
        /// </summary>
        /// <returns></returns>
        public bool IsNullOrEmpty()
        {
            if (TimeOut.HasValue || !string.IsNullOrEmpty(FilePath))
                return false; 
            return true;
        }
    }
}
